<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<div id="organisationNetworkSection" class="networkSection">
	
	<c:url scope="page" value="/organisation/list.html" var="organisationNetworkListURL">
		<c:param name="id" value="${entity.id}"/>
	</c:url>
	
	<div id="organisationNetworkTitle" class="networkTitle">
		<a href="${organisationNetworkListURL}">Organisations</a>
	</div> <!-- #organisationNetworkTitle -->

	<div id="organisationNetwork" class="network">
		<c:if test="${entity.organisationNetworkSize != 0}">
			<c:forEach items="${entity.organisationsInNetwork}" var="organisation">
			
				<c:url scope="page" value="/organisation/profile.html" var="organisationProfileURL">
					<c:param name="id" value="${organisation.id}"/>
				</c:url>
				<c:url scope="page" value="/getImage.do" var="organisationImg">
					<c:param name="imgsrc" value="${organisation.imgSrc}"/>
				</c:url>
		
				<div class="networkMember">
					<div class="networkMemberImg">
						<a href="${organisationProfileURL}">
							<img src="${organisationImg}" width="60" class="networkMemberImg" />
						</a>
					</div>
					<div class="networkMemberName">
						<a href="${organisationProfileURL}">${organisation.name}</a>
					</div>
				</div> <!-- .networkMember -->
			</c:forEach>
		</c:if>
		<hr/>
	</div> <!-- #organisationNetworkTitle -->

	<div id="allOrganisationNetworkMembers" class="allNetworkMembers">
		<a href="${organisationNetworkListURL}">&raquo; See all ${entity.organisationNetworkSize} organisations</a>
	</div><!-- .seeAllNetworkMembers -->
</div> <!-- #organisationNetworkSection -->

